<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/lpa_people_manage/Lpa_People_Manage.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/lpa_people_manage/Lpa_People_Manage.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Lpa_People_Manage",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "LPA人员管理",
                name: "lpa_people_manage/Lpa_People_Manage",
                newTabEdit: false,
                url: "/Lpa_People_Manage/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductionLine":"","Chief":"","Minister":"","GeneralManager":"","Type":""});
            const editFormOptions = ref([[{"title":"工段","field":"ProductionLine"},
                               {"title":"工段长/主管","field":"Chief"}],
                              [{"title":"车间主任/（副）部长","field":"Minister"},
                               {"title":"分管（副）总经理","field":"GeneralManager"},
                               {"title":"类型","field":"Type"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductionLine",title:"工段",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Chief",title:"工段长/主管",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Minister",title:"车间主任/（副）部长",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"GeneralManager",title:"分管（副）总经理",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Type",title:"类型",type:"string",sort:true,width:120,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
